package com.grandstream.website.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.grandstream.website.domain.Sys_Role;
import com.grandstream.website.domain.Sys_RoleExample;
import com.grandstream.website.persistence.Sys_roleMapper;

/**
 * ClassName:Sys_roleService
 * 
 * @Description: TODO(这里用一句话描述作用)
 * @author czheng
 * @version 1.0 2011-5-18
 * @since 1.0
 * @see
 */
@Service
public class Sys_RoleServiceImpl implements ISys_RoleService {

	@Autowired
	private Sys_roleMapper sys_roleMapper;

	public Sys_Role getAccount(String name) {
		return sys_roleMapper.getRole(name);
	}

	public int getCount(Sys_RoleExample example) {
		return sys_roleMapper.countByExample(example);
	}

	public static void main(String[] args) {
		Sys_RoleServiceImpl srService = new Sys_RoleServiceImpl();
		Sys_Role srole = new Sys_Role();
		srole = srService.getAccount("1");
		System.out.println(srole.getName());
	}

	@Override
	public List getPage(Sys_Role t) {

		// TODO Auto-generated method stub
		return null;

	}

	@Override
	public void get(Sys_Role t) {

		// TODO Auto-generated method stub

	}

	@Override
	public void create(Sys_Role t) {

		// TODO Auto-generated method stub

	}

	@Override
	public void delete(Sys_Role t) {

		// TODO Auto-generated method stub

	}

	@Override
	public void update(Sys_Role t) {

		// TODO Auto-generated method stub

	}

}
